package TwoAgain;

public class ShopCommodity {
    private Commodity commodity;
    private int num;

    public ShopCommodity(Commodity commodity, int num) {
        this.commodity = commodity;
        this.num = num;
    }

    public Commodity getCommodity() {
        return commodity;
    }

    public void setCommodity(Commodity commodity) {
        this.commodity = commodity;
    }

    public int getNum() {
        return num;
    }

    public void setNumber(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "ShopCommodity{" +
                "commodity=" + commodity +
                ", num=" + num +
                '}';
    }

}
